package com.dianping.cat.core.dal;

import java.util.Date;
import org.unidal.dal.jdbc.DataObject;













public class Hostinfo
  extends DataObject
{
  private int m_id;
  private String m_ip;
  private String m_domain;
  private String m_hostname;
  private Date m_creationDate;
  private Date m_lastModifiedDate;
  private int m_keyId;
  
  public void afterLoad() {
/*  30 */     this.m_keyId = this.m_id;
    clearUsage();
  }

  
/*  35 */   public Date getCreationDate() { return this.m_creationDate; }



/*  39 */   public String getDomain() { return this.m_domain; }



/*  43 */   public String getHostname() { return this.m_hostname; }



/*  47 */   public int getId() { return this.m_id; }



/*  51 */   public String getIp() { return this.m_ip; }



/*  55 */   public int getKeyId() { return this.m_keyId; }



/*  59 */   public Date getLastModifiedDate() { return this.m_lastModifiedDate; }

  
  public Hostinfo setCreationDate(Date creationDate) {
/*  63 */     setFieldUsed(HostinfoEntity.CREATION_DATE, true);
/*  64 */     this.m_creationDate = creationDate;
/*  65 */     return this;
  }
  
  public Hostinfo setDomain(String domain) {
/*  69 */     setFieldUsed(HostinfoEntity.DOMAIN, true);
/*  70 */     this.m_domain = domain;
/*  71 */     return this;
  }
  
  public Hostinfo setHostname(String hostname) {
/*  75 */     setFieldUsed(HostinfoEntity.HOSTNAME, true);
/*  76 */     this.m_hostname = hostname;
/*  77 */     return this;
  }
  
  public Hostinfo setId(int id) {
/*  81 */     setFieldUsed(HostinfoEntity.ID, true);
/*  82 */     this.m_id = id;

/*  84 */     setFieldUsed(HostinfoEntity.KEY_ID, true);
/*  85 */     this.m_keyId = id;
/*  86 */     return this;
  }
  
  public Hostinfo setIp(String ip) {
/*  90 */     setFieldUsed(HostinfoEntity.IP, true);
/*  91 */     this.m_ip = ip;
/*  92 */     return this;
  }
  
  public Hostinfo setKeyId(int keyId) {
/*  96 */     setFieldUsed(HostinfoEntity.KEY_ID, true);
/*  97 */     this.m_keyId = keyId;
/*  98 */     return this;
  }
  
  public Hostinfo setLastModifiedDate(Date lastModifiedDate) {
/* 102 */     setFieldUsed(HostinfoEntity.LAST_MODIFIED_DATE, true);
/* 103 */     this.m_lastModifiedDate = lastModifiedDate;
/* 104 */     return this;
  }

  
  public String toString() {
/* 109 */     StringBuilder sb = new StringBuilder(1024);

/* 111 */     sb.append("Hostinfo[");
/* 112 */     sb.append("creation-date: ").append(this.m_creationDate);
/* 113 */     sb.append(", domain: ").append(this.m_domain);
/* 114 */     sb.append(", hostname: ").append(this.m_hostname);
/* 115 */     sb.append(", id: ").append(this.m_id);
/* 116 */     sb.append(", ip: ").append(this.m_ip);
/* 117 */     sb.append(", key-id: ").append(this.m_keyId);
/* 118 */     sb.append(", last-modified-date: ").append(this.m_lastModifiedDate);
/* 119 */     sb.append("]");
/* 120 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/Hostinfo.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */